import time
import unittest
from tools.HTMLTestRunner import HTMLTestRunner
from script import TestCase_login
from script import TestCase_employee

suite = unittest.TestSuite()


# 登录生成报告
# suite.addTest(unittest.makeSuite(TestCase_login.TestLogin))
# f = open('./report/reporter-login-%s.html' % time.time(), 'wb')
# runner = HTMLTestRunner(stream=f, title='Login-reporter', description='testing in chrome')

# 员工生成报告
suite.addTest(unittest.makeSuite(TestCase_employee.TestLogin))
suite.addTest(unittest.makeSuite(TestCase_employee.TestAddEmployee))
f = open('./report/reporter-employee-%s.html' % time.time(), 'wb')
runner = HTMLTestRunner(stream=f, title='employee-reporter', description='testing in chrome')

runner.run(suite)
f.close()
